/**
 * @Title: CodeEnum.java
 * @Package com.kaver.picc.common.constant
 * @author roc
 * @date 2018年9月29日 下午2:35:08
 * @version V1.0
 * @copyright kaver
 */
package com.kaver.sso.def.enums;

public enum CodeEnum {
    S_000000("000000", "成功"),
    F_000001("000001", "请求参数不合法"),
    F_000002("000002", "报文格式不正确"),
    F_000003("000003", "Header参数缺失"),
    F_000004("000004", "Header参数不合法"),
    F_000005("000005", "添加用户失败"),
    F_000006("000006", "登陆信息已过期"),
    F_000007("000007", "ticket已失效"),
    F_000008("000008", "密码错误"),
    F_000009("000009", "新密码格式不符"),
    F_000010("000010", "数据不存在"),
    F_000011("000011", "您无权限访问此资源"),
    F_000012("000012", "请求非法"),
    F_999998("999998", "服务不可用"),
    F_999999("999999", "系统异常");
    private String code;

    private String msg;

    private CodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
